package cn.jeefast.common.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author theodo
 * @since 2020-01-02
 */
@TableName("mb_message")
public class MbMessage extends Model<MbMessage> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 研究组
     */
	private String research;
    /**
     * 上传时间
     */
	@TableField("up_time")
	private Date upTime;
    /**
     * 原因
     */
	private String reason;

	/**
	 * 接收人（医生ID）
	 */
	@TableField("to_doc")
	private Long toDoc;

	/**
	 * 是否已读
	 */
	@TableField("is_read")
	private Integer isRead;

	/**
	 * 关联信息ID
	 */
	@TableField("to_id")
	private Long toId;

	/**
	 * 发送时间
	 */
	@TableField("send_time")
	private Date sendTime;


	private String title;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getResearch() {
		return research;
	}

	public void setResearch(String research) {
		this.research = research;
	}

	public Date getUpTime() {
		return upTime;
	}

	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Long getToDoc() {
		return toDoc;
	}

	public void setToDoc(Long toDoc) {
		this.toDoc = toDoc;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public Long getToId() {
		return toId;
	}

	public void setToId(Long toId) {
		this.toId = toId;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MbMessage{" +
			", id=" + id +
			", research=" + research +
			", upTime=" + upTime +
			", reason=" + reason +
			"}";
	}
}
